package com.boyi.cycling_master.ui;

import android.os.Bundle;
import android.widget.TextView;

import com.boyi.cycling_master.R;
import com.boyi.cycling_master.bean.LoginResponseBean;
import com.boyi.cycling_master.ui.base.BaseToolBarActivity;

import org.litepal.crud.DataSupport;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MainActivity extends BaseToolBarActivity {


    @BindView(R.id.tv_main_user)
    TextView tvMainUser;

    @Override
    public int getContentViewId() {
        return R.layout.activity_main;
    }



    @Override
    public void initLogic() {
        LoginResponseBean.DataCollectionBean bean = DataSupport.findFirst(LoginResponseBean.DataCollectionBean.class);
        if(bean!=null)
            tvMainUser.setText(bean.getUserId()+"\n"+bean.getMsgStatus()+"\n"+bean.getUserNick()+"\n");
    }

    @Override
    public void getBundleExtras(Bundle bundle) {

    }

    @Override
    public String pageTitle() {
        return "登录状态";
    }



}
